package com.itheima.dubbo.servicer;

import com.itheima.dubbo.fileUser;
import com.itheima.dubbo.pojo.User;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.rpc.RpcContext;

@DubboService(retries = 3,version = "${dubbo.application.version}")
public class Servicerimpl implements fileUser {
    @Override
    public String userId(String ss) {
        String s = "hallo";
        return s+ss;
    }

    @Override
    public User users(User user) {
         //隐事传参
        RpcContext.getContext().getAttachment("itname");
        return new User(user.getId(), "张三");
    }

}
